package com.dingwen.treasure.business.controller;

import com.dingwen.treasure.base.controller.BaseViewController;
import com.dingwen.treasure.base.pojo.vo.Result;
import com.dingwen.treasure.business.model.vo.DictionaryVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 　DictionaryController: AOP 动态字典实现业务案例
 * 　@author dingwen
 * 　@date 2022/7/12
 */
@Api(tags = "AOP动态字典实现业务")
@RestController
@Slf4j
@RequestMapping("/dic")
public class DictionaryController implements BaseViewController {


    @ApiOperation(value = "测试", response = Result.class)
    @GetMapping
    public Result<DictionaryVo> getTest() {
        return success(DictionaryVo.builder()
                .treasure("test")
                .build());
    }
}
